package com.hhl.flower.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hhl.flower.pojo.entity.History;
import com.hhl.flower.pojo.vo.HistoryVO;

import java.util.List;

/**
* @author Liubuzhu
* @description 针对表【history】的数据库操作Service
* @createDate 2024-06-20 09:55:51
*/
public interface HistoryService extends IService<History> {

	/**
	 * 查询历史记录
	 * @param userId
	 * @return
	 */
	List<HistoryVO> listHistoryFlowerOrderByTime(Integer userId);

	/**
	 * 添加历史记录
	 * @param userId
	 * @param flowerId
	 */
	void addToHistory(Integer userId, Integer flowerId);

}
